package com.dy.design_pattern_study.memento_pattern.dome2;

import lombok.Getter;

/**
 * @CreateBy zhangdingyi
 * @Date 2023-04-10
 * @Content 备忘录类 -备份状态类
 */
public class Memento {

    //返回需要保存的状态数据
    @Getter
    private String state;

    //保存状态数据
    public Memento(String state) {
        this.state = state;
    }
}
